// api/index.js
import axios from 'axios'

const BASE_URL = 'http://localhost:3001'

/**
 * 获取目录树数据
 * @returns {Promise} 目录树的结构化数据
 */
export function getAllHistoryResults(page, limit) {
  return axios.get(`${BASE_URL}/history-results?page=${page}&limit=${limit}`)
}
